using System;
using System.Text.RegularExpressions;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ProjectDisplay : System.Web.UI.Page 
{
    protected Project proCurrent = null;

    protected void Page_Load(object sender, EventArgs e)
    {
        proCurrent = ProjectManager.GetProject(Convert.ToInt32( Request.QueryString["id"]));

        labCat.Text = proCurrent.Category;
        labDesc.Text = proCurrent.LongDesc;
        labStatus.Text = proCurrent.Status; 
        labTitle.Text = proCurrent.Title;
        LabFile.Text = proCurrent.FileName;

        ancPhoto.HRef = "Photos.aspx?AlbumID=" + proCurrent.AlbumID.ToString();

        if (proCurrent.PhotoID == -1)
        {
            imgPhoto.Src = "Handler.ashx?AlbumID=" + proCurrent.AlbumID.ToString() + "&Size=S";
        }
        else
        {
            imgPhoto.Src = "Handler.ashx?PhotoID=" + proCurrent.PhotoID.ToString() + "&Size=S";
        }

        hliURL.NavigateUrl = proCurrent.URL;
        hliURL.Text = ((proCurrent.Display == string.Empty)?proCurrent.URL:proCurrent.Display);
        hliURL.ToolTip = Regex.Replace(proCurrent.ShortDesc, @"<(.|\n)*?>", string.Empty);

   




    }// end of the Page_Load method
}// end of the class
